Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds support for dynamic token rotation configuration to enhance the existing token load balancer system. The changes enable repositories to configure additional authentication tokens and GitHub Apps without modifying workflow files.
Changes:
- Introduces a new composite action
.github/actions/export-load-balancer-tokens/action.ymlto centralize token export logic - Adds support for
TOKEN_ROTATION_JSON(structured config) andTOKEN_ROTATION_ENV_KEYS(comma-separated list) to dynamically register tokens - Updates token load balancer JavaScript to parse and register custom tokens/apps with duplicate detection
- Integrates the new action across 50+ workflow files in both the main repository and consumer templates
- Updates documentation to describe the new configuration mechanism
Reviewed changes
Copilot reviewed 61 out of 63 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
.github/actions/export-load-balancer-tokens/action.yml |
New composite action that exports token secrets to environment variables with multi-line value support |
templates/consumer-repo/.github/actions/export-load-balancer-tokens/action.yml |
Template version of the composite action |
.github/scripts/token_load_balancer.js |
Adds parsing functions and safe registration logic for dynamic token configuration |
.github/scripts/github-api-with-retry.js |
Updates secret collection to include rotation keys and dynamically discovered keys |
.github/scripts/github-rate-limited-wrapper.js |
Indentation fix for improved code readability |
.github/scripts/README.md |
Documents the new composite action and token rotation configuration |
.github/scripts/API_CALL_PATTERN.md |
Adds usage examples for the load balancer token action |
.github/actionlint-allowlist.txt |
Suppresses false positives for new token rotation input properties |
.github/workflows/*.yml (main repo) |
Integrates the token export action across 35+ workflows |
templates/consumer-repo/.github/workflows/*.yml |
Integrates the token export action across 11 template workflows |
.github/workflows/health-70-validate-sync-manifest.yml |
Fixes indentation and adds token export step |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
templates/consumer-repo/.github/actions/export-load-balancer-tokens/action.yml
Show resolved
Hide resolved
Automated Status SummaryHead SHA: 2812183
Coverage Overview
Coverage Trend
Top Coverage Hotspots (lowest coverage)
Updated automatically; will refresh on subsequent CI/Docker completions. Keepalive checklistScopeNo scope information available Tasks
Acceptance criteria
|
No description provided.